<html>
<head>
<title>Welcome to Yitai</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="<?=base_url()?>js/jquery-1.2.6.min.js" type="text/javascript"></script>
<style type="text/css">

body {
 background-color: #fff;
 margin: 40px;
 font-family: Lucida Grande, Verdana, Sans-serif;
 font-size: 14px;
 color: #4F5155;
}

a {
 color: #003399;
 background-color: transparent;
 font-weight: normal;
}

h1 {
 color: #444;
 background-color: transparent;
 border-bottom: 1px solid #D0D0D0;
 font-size: 16px;
 font-weight: bold;
 margin: 24px 0 2px 0;
 padding: 5px 0 6px 0;
}

code {
 font-family: Monaco, Verdana, Sans-serif;
 font-size: 12px;
 background-color: #f9f9f9;
 border: 1px solid #D0D0D0;
 color: #002166;
 display: block;
 margin: 14px 0 14px 0;
 padding: 12px 10px 12px 10px;
}

</style>
<script>

function login(){
    user_v = $("#username").val();
    pswd_v = $("#password").val();
    if(user_v == "" ||
      pswd_v == ""){
        $("#result").html("用户名或密码不能为空").show().fadeOut(6000);
        return false;
    }
    $.post(
        "<?=$action?>",
        {
            "username": "" + user_v +"",
            "password": "" + pswd_v +""
        },
        function(data){
            if(data == "true"){
                self.location="<?=$goto?>";
            }else{
                $("#result").html("登录失败").show().fadeOut(6000);
            }
        }
    );
}
</script>
</head>
<body>

<h1>Welcome to Yitai!</h1>

<div id="welcome">
  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="604" height="185">
      <param name="movie" value="<?=base_url()?>images/welcome.swf">

      <param name="quality" value="high">
      <embed src="<?=base_url()?>images/welcome.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="604" height="185"></embed>
    </object>
</div>

<div id="login">
    <label>用户名</label>
    <input type="text" id="username" value="" />
    <label>密码</label>
    <input type="password" id="password" value="" />
    <input type="button" onclick="login()" value="登录">
</div>
<div id="result">
  
</div>

<p><br />Page rendered in {elapsed_time} seconds</p>

</body>
</html>
